<include href="base/header.html"/>
<div class="messages">
    <check if="{{ @vparams_saved }}">
        <true>
            <p>Settings are saved.</p>
        </true>
    </check>
</div>
<div class="form">
    <form action="" method="post">
        <table>
            <thead>
            <tr>
                <th>Key</th>
                <th>Value</th>
                <th>Description</th>
            </tr>
            </thead>
            <tbody>
            <repeat group="{{ @vparams }}" value="{{ @param }}">
                <input type="hidden" name="vparams[{{ @param->id }}][key]"
                       value="{{ @param->key }}"/>
                <tr>
                    <td><label for="{{ $param->key }}">{{ ucfirst($param->key) }}:</label></td>
                    <td>
                        <input type="text" id="{{ $param->key }}" name="vparams[{{ @param->id }}][value]"
                               value="{{ @param->value }}"/>
                    </td>
                    <td>
                        <input type="text" id="{{ $param->key }}-desc" name="vparams[{{ @param->id }}][description]"
                               value="{{ @param->description }}" size="60"/>
                    </td>
                </tr>
            </repeat>
            </tbody>
        </table>
        <button type="submit">Submit</button>
    </form>
</div>

<include href="base/footer.html"/>